import java.util.Arrays;

public class Test13 {
    public static void main(String[] args) {
        int[] arr1 = {1,23,3,454,65,75,45};
        int[] arr2 = Arrays.copyOf(arr1,arr1.length+1);
        //int[] arr3 = ;
        //System.arraycopy(arr1,0,arr3,0,arr1.length)
        arr1 = arr2;
        System.out.println(Arrays.toString(arr1));
    }
}
